<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Doccument</title>
</head>
<body>

{%for i in data %}
    <div class="textlist" style="height: 60px;">
      <a href="/demo/detail?name={{i[0]}}">{{i[0]}}</a>
      <img style="height: 60px;" src="{{i[1]}}" alt="">
    </div>
{%endfor %}
    <div style="display:flex;justify-content:center;align-items:center;margin: 100px;" >
      <a href="/demo/books?keyword={{current_page_index-1}}-{{keyword}}">前一页 </a>
      <div>第{{current_page_index+1}}页</div>
      <div>&nbsp;&nbsp;共{{page_num}}页</div>
      <a href="/demo/books?keyword={{current_page_index+1}}-{{keyword}}"> 后一页 </a>
    </div>

</body>
</html>

<script>

    function myFunction(event) {
      if (event.keyCode === 13) {
        window.open("https://www.runoob.com");
        console.log("eee")
      }
    }
</script>